/*******************************************************************************
 * Copyright (c) 2009 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package com.cip.client.utiles.criteria;

import java.io.Serializable;

/**
 * Client-side criterion
 * 
 * @author Roberto Mozzicato
 * @author Infracom IT s.p.a.
 * 
 */
public class GWTCriterion implements Serializable {
	private static final long serialVersionUID = -7177622812093114889L;

	private GWTCriterionType type;
	private Serializable[] params;

	public GWTCriterion() {
	}

	/**
	 * Costruttore
	 * 
	 * @param propertyName
	 * @param lo
	 * @param hi
	 */
	public GWTCriterion(GWTCriterionType type, Serializable... params) {
		this.type = type;
		this.params = params;
	}

	public Serializable[] getParams() {
		return params;
	}

	public GWTCriterionType getType() {
		return type;
	}

}
